package com.tuanzi.loan.business.service.statistics.impl;

import com.tuanzi.loan.business.repository.statistics.custom.StatCheckInCustomRepository;
import com.tuanzi.loan.business.service.statistics.StatCheckInService;
import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.login.StatCheckInRequest;
import com.tuanzi.loan.vo.response.statistics.login.StatCheckInResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.retry.RetryException;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: chenweijun
 * @Date: 2019/3/14 11:09
 * @Description:
 */
@Debug
@Service
@Transactional
public class StatCheckInServiceImpl implements StatCheckInService{

    @Autowired
    private StatCheckInCustomRepository statCheckInCustomRepository;

    @Override
    public Page<StatCheckInResponse> list(PageSearcher<StatCheckInRequest> pageSearcher) {
        return statCheckInCustomRepository.list(pageSearcher.getSearchCondition(), pageSearcher.getPageable());
    }
}
